$(function() {
	top_onload.begin();
});
var head = {
	getuser : function() {
		var un = $.cookie("un");
		if (null != un && un.length > 0 && "" != un) {
			$("#username").html(un);
		} 
	},
	logout : function() {
		window.parent.location.href = global_parameter.login_page + "/auth/logout!weblogout";
	},
	update_pwd : function() {
		window.open(global_parameter.login_page + "/updatepw.jsp");
	},
	click : function() {
		var temp = $(".head_tck");
		var tof = temp.is(":hidden");
		if (false == tof) {
			temp.slideUp();
		} else {
			temp.slideDown();
		}
	}
};
var top_onload = {
	begin : function() {
		head.getuser();
		$(".head_tck").hide();
	}
};
function jumpToIndex(){
	window.parent.location.href="http://store.kamixy.com/";
}

